<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
  </head>
  <body>
  	<h1>修改密码</h1>
  	<div id="head">
		<h1>商务会员管理系统</h1>
		用户名：<s:property value="#session.USERS.name" />
		用户类型：<s:property value="#session.USERS.userType.name" />
		<a href="#">退出</a>
	</div>
	<ul>
		<li><a href="modifyPwd.jsp">修改密码</a></li>
		<li><a href="lookup">查看所有会员</a></li>
	</ul>
	<hr />
	<s:form action="modifyPwd">
		<p>原密码：<input type="password" name="oldPwd" /></p>
		<p>新密码：<input type="password" name="newPwd" /></p>
		<p>确认新密码：<input type="password"  /></p>
		<p><input type="submit" value="修改" /></p>
	</s:form>
	<script type="text/javascript">
		var msg = '<s:property value="actionErrors[0]" />';
		if(msg){
			alert(msg);
		}
	</script>
	
	<s:debug></s:debug>
  </body>
</html>
